﻿(function (a) { a.fn.extend({ jTab: function (e) { e = a.extend({ menutag: "", curIndex: 0, action: "click", activeClassName: "on-zh", boxBlock: a(e.menutag).parent().parent().next().children() }, e); var c = arguments.callee.num ? arguments.callee.num++ : (arguments.callee.num = 0, arguments.callee.num++); a(e.menutag + ":first-child").addClass(e.activeClassName); e.boxBlock.filter(":not('span')").filter(":not(:first-child)").hide(); e.boxBlock.attr("id", function () { return d(e.activeClassName + c) + e.boxBlock.index(this) }); a(e.menutag).bind(e.action, function () { var h = a(e.menutag); var f = h.index(this); var g = d(e.activeClassName + c); b(h, f, g); return false }); function b(g, f, i) { var h = i + f; a("#" + h).siblings().filter(":not('span')").hide(); a("#" + h).show(); g.eq(f).addClass(e.activeClassName).siblings().removeClass(e.activeClassName) } function d(f) { var g = f; return g } } }) })(jQuery);

